package com.clkj.zhonghui.service.topic;

import com.clkj.zhonghui.pojo.topic.Topic;
import com.clkj.zhonghui.pojo.topic.TopicComment;
import com.clkj.zhonghui.pojo.topic.TopicPrise;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @Author：周佳润
 * @Date：2024/7/16 上午9:26
 */
public interface TopicService {


    PageInfo getTopicPage(String topicTitle, Integer topicFlag, Integer page, Integer size);

    void addTopic(Topic topic, HttpServletRequest request,String flag);

    void updateTopic(String ids, Integer topicStatus);

    void delTopic(String ids);

    PageInfo getTopicComment(Integer commentFlag, Integer topicId,Integer pageNumber, Integer pageSize);

    void delComment(String ids);

    void addComment(TopicComment topicComment, String flag);

    Topic getTopicById(Integer topicId);

    void addTopicPrise(TopicPrise topicPrise);

    void listTopicPrise(Integer topicId);

    void zhidingComment(String ids, Integer topping);

    void importComment(HttpServletRequest request);

    Map getAppTopic(Integer topicId, Integer userId);
}
